Visual Basic (Declaration) | |
---|---|
Function TryAdd( _ ByVal key As TKey, _ ByVal value As TValue _ ) As Boolean |
Parameters
- key
- The object to use as the key of the element to add.
- value
- The object to use as the value of the element to add.
Exception | Description |
---|---|
System.NotSupportedException | The IDictionary is read-only. |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7